<?php

	class database {
	
		/* Set the login & database var */
		var $host;
		var $username;
		var $password;
		var $database;
		
		var $link_id;
		
		function connection($_host, $_user, $_pass, $_db) {
			$this->host = $_host;
			$this->username = $_user;
			$this->password = $_pass;
			$this->database = $_db;
			
			$this->link_id = @mysql_connect($_host, $_user, $_pass) or die("Couldn't connect the database! Error: " . mysql_error());
			@mysql_select_db($_db, $this->link_id);
		}
		
	}

?>